<?php

namespace app\common\repository\articleType;

use app\common\model\article\ArticleType as ArticleTypeModel;

class R
{
    public function __construct(
        ArticleTypeModel $articleTypeModel
    ) {
        $this->articleTypeModel = $articleTypeModel;
    }

    public function getTypes($cond)
    {
        return ArticleTypeModel::where($cond)
            ->select();
    }
}
